package main

import (
	"fmt"
	"os"
)

func main() {

	path := "F:\\golang\\golang\\(传智播客)20小时快速入门go语言视频\\第5天视频\\3-视频"

	file, _ := os.Open(path)

	names, _ := file.Readdirnames(-1)

	fmt.Println(names)

	for _, v := range names {

		info, _ := os.Stat(path + string(os.PathSeparator) + v)

		if !info.IsDir() {

			fmt.Println(path + string(os.PathSeparator) + v)
		}
	}

}
